import random
print("""
欢迎来到剪刀石头布游戏！
版权：ZSN
开发时间：2025.3.19
适当游戏益脑，沉迷游戏伤身，合理安排时间，享受健康生活
""")
count = 5
win = 0
ScissorrockFive = ["剪刀","石头","布"]
while count != 0 :
    robot = random.choice(ScissorrockFive)
    superman = input("请出拳：")
    if superman == robot:
        print("平局！哈哈哈")
    elif superman == "剪刀" and robot == "石头":
        print("你输了！哈哈哈")
        count -= 1
    elif superman == "剪刀" and robot == "布":
        print("哈哈哈，你赢了！")
        win += 1
        count -= 1
    elif superman == "石头" and robot == "布":
        print("你输了！哈哈哈")
        count -= 1
    elif superman == "石头" and robot == "剪刀":
        print("哈哈哈，你赢了！")
        win += 1
        count -= 1
    elif superman == "布" and robot == "剪刀":
        print("你输了！哈哈哈")
        count -= 1
    elif superman == "布" and robot == "石头":
        print("哈哈哈，你赢了！")
        win += 1
        count -= 1

print("你赢了",win,"局")
if win>=3:
    print("恭喜你，不用挂")
else:
    print("你挂了。")

